﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp7
{
    class Teacher : Iteacher, ISwimming
    {
        public string Name { get; set; }

        public Teacher(string name)
        {
            this.Name = name;
        }

        public void teacher()
        {
            Console.Write("我叫{0}，我是一名老师。",this.Name);
        }

        void Iteacher.music()
        {
            Console.Write("教的课程是音乐。");
        }

        void ISwimming.Athletes() 
        {
            Console.WriteLine("我是一名游泳运动员。");
        }
    }
}
